package com.zeus.core.report;

import com.zeus.common.enums.ZeusEventTypeEnum;
import com.zeus.core.open.event.ZeusEvent;

/**
 * 服务关闭
 *
 * @author f1ybear_wang  2022/2/23 6:41 下午
 */
public class ZeusReportServiceShutdownClient extends AbstractSimpleZeusReportClient {
    public ZeusReportServiceShutdownClient() {
        super();
        this.message = "感谢使用~";
        this.zeusEvent = ZeusEvent.builder().eventType(eventType()).message("服务关闭").build();
    }

    @Override
    public ZeusEventTypeEnum eventType() {
        return ZeusEventTypeEnum.SERVICE_SHUTDOWN_EVENT;
    }

    @Override
    public String uniqueCode() {
        // 固定写死，无需这个
        return ZeusEventTypeEnum.SERVICE_SHUTDOWN_EVENT.getCode();
    }

}
